package com.ruoyi.service.jpjs.empquit.impl;


import com.ruoyi.mapper.jpjs.empquit.EmpQuitMapper;
import com.ruoyi.service.jpjs.PublicService;
import com.ruoyi.service.jpjs.empquit.EmpQuitService;
import com.ruoyi.util.BaseResult;
import com.ruoyi.util.ResultEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class EmpQuitServiceimpl implements EmpQuitService {

    @Autowired
    EmpQuitMapper empQuitMapper;

    @Autowired
    PublicService publicService;

    @Override
    public List<Map<String, Object>> list(Map map) {
        List<Map<String, Object>> compList = publicService.findUserCompAndJszb();
        map.put("compList", compList);
        return empQuitMapper.list(map);
    }

    @Override
    public Map<String, Object> findDataById(String id) {
        return empQuitMapper.findDataById(id);
    }



    @Override
    public int edit(Map map) {
        return empQuitMapper.edit(map);
    }




}
